//Snake.c
#include <avr/io.h>
#include <util/delay.h>
int main (void)
{
	DDRD = 0xFF;
	PORTD = 0;
	for (int i = 1; i <= 10; i = i + 1)
	{
		_delay_loop_2(30000);
		
	}
	 PORTD = 0;
		
	for (int i = 1; i <= 700; i = i + 1)
	{
		PORTD = 3;
		_delay_loop_2(250);
		PORTD = 1;
		_delay_loop_2(1400);	
	}
	PORTD = 0;
	for (int i =1; i <= 700; i = i + 1)
	{
		PORTD = 3;
		_delay_loop_2(250);
		PORTD = 2;
		_delay_loop_2(1400);	
	}
	PORTD = 0;
}

